﻿
#region Using Directives

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    using MarketPulse.BusinessLogic.Common;

#endregion

namespace MarketPulse.BusinessLogic.Private.StateMachine
{
    [Serializable]
    internal class VisitStateAwaitingQA : VisitStateBase
    {
        internal VisitStateAwaitingQA(bool throwIfInvalid)
            : base(throwIfInvalid)
        {
            mVisitStateType = VisitStatusTypeList.AwaitingQA;
            InitVisitStateString();
        }

        public override bool QAStartDataEntry(IVisitStateContext context, bool tryTransition)
        {
            if (!tryTransition)
            {
                context.SetState(new VisitStateQAInProgress(mThrowIfInvalid));
            }
            return true;
        }
    }
}
